home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?> <!-- -*- Mode: HTML -*- -->
-
-
- <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
- <?xml-stylesheet href="chrome://editor/skin/aboutDialog.css" type="text/css"?>
-
- <!DOCTYPE window [
- <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
- %brandDTD;
- <!ENTITY % aboutDialogDTD SYSTEM "chrome://editor/locale/aboutDialog.dtd" >
- %aboutDialogDTD;
- ]>
-
- <dialog xmlns:html="http://www.w3.org/1999/xhtml"
- xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
- id="aboutDialog"
- buttons="accept,extra2"
- onload="onLoad();"
- title="&aboutDialog.title;" creditslabel="&credits;" aboutlabel="&aboutLink;" versionlabel="&aboutVersion;"
- style="width: 299px; height: 330px;">
-
- <script type="application/x-javascript">
- <![CDATA[
- function onLoad() {
- var versionField = document.getElementById("versionField");
- versionField.value = document.documentElement.getAttribute("versionlabel") + ' '
- + navigator.vendorSub + ' (' + navigator.productSub + ')';
-
- var button = document.documentElement.getButton("extra2");
- button.setAttribute("label", document.documentElement.getAttribute("creditslabel"));
- gSelectedPage = 0;
- button.addEventListener("command", switchPage, false);
- document.documentElement.getButton("accept").focus();
- }
-
- function uninit(aEvent)
- {
- if (aEvent.target != document)
- return;
- var iframe = document.getElementById("creditsIframe");
- iframe.setAttribute("src", "");
- }
-
- function switchPage(aEvent)
- {
- var button = aEvent.target;
- if (button.localName != "button")
- return;
-
- if(aEvent.shiftKey)
- {
- window.opener.loadExternalURL("http://disruptive-innovations.com/book/0823.html");
- return;
- }
-
- var iframe = document.getElementById("creditsIframe");
- if (gSelectedPage == 0) {
- iframe.setAttribute("src", "chrome://editor/locale/credits.html");
- button.setAttribute("label", document.documentElement.getAttribute("aboutlabel"));
- gSelectedPage = 1;
- }
- else {
- iframe.setAttribute("src", "");
- button.setAttribute("label", document.documentElement.getAttribute("creditslabel"));
- gSelectedPage = 0;
- }
- var modes = document.getElementById("modes");
- modes.setAttribute("selectedIndex", gSelectedPage);
- }
- ]]>
- </script>
-
- <deck id="modes" flex="1">
- <vbox flex="1" id="clientBox">
- <vbox id="versionWrapper">
- <textbox id="versionField" readonly="true" class="plain" tabindex="2"/>
- </vbox>
- <separator class="thin"/>
- <description id="copyright">©rightText;</description>
- </vbox>
-
- <vbox flex="1" id="creditsBox">
- <html:iframe style="border: 0px;" id="creditsIframe" src="chrome://editor/locale/credits.html" flex="1"/>
- </vbox>
- </deck>
-
- <separator class="groove" id="groove"/>
-
- </dialog>
-